/**
 * "astralsorcery:altar/shifting_star_evorsio":{"recipe":{
 * "type":"astralsorcery:altar",
 * "altar_type":3,
 * "duration":600,
 * "starlight":4800,
 * "pattern":["__B__","__A__","BCDCB","__A__","__B__"],
 * "key":{
 * "A":{"tag":"forge:cobblestone"},
 * "B":{"tag":"astralsorcery:stardust"},
 * "C":{"tag":"astralsorcery:starmetal"},
 * "D":{"item":"astralsorcery:shifting_star"}},
 * "output":[{"item":"astralsorcery:shifting_star_evorsio","count":1}],
 * "focus_constellation":"astralsorcery:evorsio",
 * "relay_inputs":[
 * {"tag":"forge:cobblestone"},
 * {"item":"astralsorcery:illumination_powder"},
 * {"tag":"astralsorcery:stardust"},
 * {"tag":"forge:cobblestone"},
 * {"item":"astralsorcery:illumination_powder"},
 * {"tag":"astralsorcery:stardust"}],
 * "effects":[
 * "astralsorcery:built_in_effect_constellation_finish",
 * "astralsorcery:built_in_effect_trait_relay_highlight",
 * "astralsorcery:built_in_effect_discovery_central_beam",
 * "astralsorcery:built_in_effect_trait_focus_circle",
 * "astralsorcery:focus_dust_swirl","astralsorcery:focus_edge",
 * "astralsorcery:altar_focus_sparkle","astralsorcery:altar_default_sparkle",
 * "astralsorcery:built_in_effect_constellation_lines",
 * "astralsorcery:built_in_effect_attunement_sparkle"]}}
 */
onEvent('recipes', (event) => {
  const five_list = [
    {
      "type": "extendedcrafting:shaped_table",
      "pattern": [
        "    A",
        " B A ",
        " BA  ",
        " CBB ",
        "D    "
      ],
      "key": {
        "A": {
          "item": "emendatusenigmatica:lumium_ingot"
        },
        "B": {
          "item": "bloodmagic:reinforcedslate"
        },
        "C": {
          "item": "evilcraft:dark_stick"
        },
        "D": {
          "item": "evilcraft:inverted_potentia_empowered"
        }
      },
      "output": [{ "item": 'bloodmagic:sacrificialdagger', "count": 1 }],
      "focus_constellation": "astralsorcery:evorsio",
      "relay_inputs": [
        { "item": 'kubejs:paper_3' },
        { "item": "astralsorcery:illumination_powder" },
        { "item": 'thermal_extra:vukaium_ingot' },
        { "item": 'kubejs:paper_3' },
        { "item": "astralsorcery:illumination_powder" },
        { "item": 'thermal_extra:vukaium_ingot' }
      ],
    },
    {
      "type": "extendedcrafting:shaped_table",
      "pattern": [
        "A   A",
        "BACAB",
        " BDB ",
        "BBEBB",
        "BBBBB"
      ],
      "key": {
        "A": {
          "item": "minecraft:red_nether_brick_slab"
        },
        "B": {
          "item": "forbidden_arcanus:darkstone"
        },
        "C": {
          "item": 'kubejs:item_21'
        },
        "D": {
          "item": "forbidden_arcanus:dark_beacon"
        },
        "E": {
          "item": "evilcraft:blood_infuser"
        }
      },
      "output": [{ "item": 'bloodmagic:altar', "count": 1 }],
      "focus_constellation": "astralsorcery:evorsio",
      "relay_inputs": [
        { "item": 'kubejs:paper_3' },
        { "item": "astralsorcery:illumination_powder" },
        { "item": 'thermal_extra:vukaium_ingot' },
        { "item": 'kubejs:paper_3' },
        { "item": "astralsorcery:illumination_powder" },
        { "item": 'thermal_extra:vukaium_ingot' }
      ],
    },
    {

      "pattern": [
        "AA AA",
        "BBCBB",
        "DCECD",
        "BBCBB",
        "AA AA"
      ],
      "key": {
        "A": {
          "item": "betternether:cincinnasite_slab"
        },
        "B": {
          "item": "minecraft:crying_obsidian"
        },
        "C": {
          "item": "atum:crystal_glass"
        },
        "D": {
          "item": "betternether:cincinnasite_pedestal"
        },
        "E": {
          "item": "kubejs:item_21"
        }
      },
      "output": [{ "item": 'ars_nouveau:crystallizer', "count": 1 }],
      "focus_constellation": "astralsorcery:vicio",
      "relay_inputs": [
        { "item": 'kubejs:paper_4' },
        { "item": "astralsorcery:illumination_powder" },
        { "item": 'thermal_extra:vukaium_ingot' },
        { "item": 'kubejs:paper_4' },
        { "item": "astralsorcery:illumination_powder" },
        { "item": 'thermal_extra:vukaium_ingot' }
      ],
    },
    {
      "pattern": [
        "     ",
        "  A  ",
        "  B  ",
        "  C  ",
        "     "
      ],
      "key": {
        "A": {
          "item": "immersiveengineering:windmill"
        },
        "B": {
          "item": "phi:spirit_summoning_talisman"
        },
        "C": {
          "item": "ars_nouveau:glyph_summon_decoy"
        }
      },
      "output": [{ "item": 'ars_nouveau:sylph_charm', "count": 1 }],
      "focus_constellation": "astralsorcery:aevitas",
      "relay_inputs": [
        { "item": 'interactive_corporea:requesting_halo' },
        { "item": 'kubejs:item_21' },
        { "item": 'forbidden_arcanus:pixie_utrem_jar' },
        { "item": 'mythicbotany:asgard_rune' },
        { "item": 'botania:overgrowth_seed' },
        { "item": 'kubejs:undead_mixture' }
      ]
    },
    {
      "pattern": [
        "     ",
        " ABA ",
        " ACA ",
        " DDD ",
        "     "
      ],
      "key": {
        "A": {
          "item": "botania:overgrowth_seed"
        },
        "B": {
          "item": "kubejs:item_21"
        },
        "C": {
          "item": "botania:rune_earth"
        },
        "D": {
          "item": "minecraft:end_stone"
        }
      },
      "output": [{ "item": 'minecraft:end_portal_frame', "count": 3 }],
      "focus_constellation": "astralsorcery:bootes",
      "relay_inputs": [
      ]
    },
    {
      "pattern": [
        "AAFAA",
        "ABCBA",
        "ADEDA",
        "ABCBA",
        "AAAAA"
      ],
      "key": {
        "A": {
          "item": "botania:livingrock_bricks"
        },
        "B": {
          "item": "ironfurnaces:rainbow_plating"
        },
        "C": {
          "item": "extendedcrafting:frame"
        },
        "D": {
          "type": "forge:nbt",
          "item": "custommachinery:custom_machine_item",
          "count": 1,
          "nbt": "{machine:\"custommachinery:flame_furnace\"}"
        },
        "E": {
          "item": 'kubejs:item_28'
        },
        "F": {
          "item": 'astralsorcery:attunement_altar'
        }
      },
      "output": [{
        "type": "forge:nbt",
        "item": "custommachinery:custom_machine_item",
        "count": 1,
        "nbt": "{machine:\"custommachinery:highheat_furnace\"}"
      }],
      "focus_constellation": "astralsorcery:fornax",
      "relay_inputs": [
        { "item": 'kubejs:paper_4' },
        { "item": 'elementalcraft:firefurnace' },
        { "item": 'ironfurnaces:crystal_furnace' },
        { "item": 'kubejs:paper_4' },
        { "item": 'elementalcraft:binder' },
        { "item": 'ironfurnaces:crystal_furnace' }
      ]
    },
    {
      "pattern": [
        "A   B",
        "  C  ",
        " DEF ",
        "  G  ",
        "H   I"
      ],
      "key": {
        "A": {
          "item": "kubejs:paper_a_1"
        },
        "B": {
          "item": "kubejs:paper_a_2"
        },
        "C": {
          "item": "kubejs:paper_a_4"
        },
        "D": {
          "item": "kubejs:paper_a_3"
        },
        "E": {
          "item": "astralsorcery:shifting_star"
        },
        "F": {
          "item": "kubejs:paper_a_7"
        },
        "G": {
          "item": "kubejs:paper_a_6"
        },
        "H": {
          "item": "kubejs:paper_a_0"
        },
        "I": {
          "item": "kubejs:paper_a_5"
        }
      },
      "output": [{
        item: 'packagedastral:constellation_focus'
      }],
      "focus_constellation": "astralsorcery:octans",
      "relay_inputs": [
      ]
    },
    {
      "type": "extendedcrafting:shaped_table",
      "pattern": [
        "ABBBA",
        "B  CB",
        "B CDB",
        "BC DB",
        "ABBBA"
      ],
      "key": {
        "A": {
          "item": "botania:overgrowth_seed"
        },
        "B": {
          "item": "minecraft:seagrass"
        },
        "C": {
          "item": "emendatusenigmatica:aluminum_rod"
        },
        "D": {
          "item": "botania:mana_string"
        }
      },
      "output": [{
        "type": "forge:nbt",
        "item": "waterstrainer:strainer_fisherman_reinforced",
        "count": 1,
        "nbt": "{RepairCost:3,Damage:0,Enchantments:[{lvl:4s,id:\"minecraft:fortune\"},{lvl:6s,id:\"minecraft:efficiency\"}]}"
      }],
      "focus_constellation": "astralsorcery:octans",
      "relay_inputs": [
      ]
    },
    {
      "pattern": [
        "AAFAA",
        "ABCBA",
        "ADEDA",
        "ABCBA",
        "AAAAA"
      ],
      "key": {
        "A": {
          "item": "botania:livingrock_bricks"
        },
        "B": {
          "item": "ironfurnaces:rainbow_plating"
        },
        "C": {
          "item": "extendedcrafting:frame"
        },
        "D": {
          "type": "forge:nbt",
          "item": "custommachinery:custom_machine_item",
          "count": 1,
          "nbt": "{machine:\"custommachinery:crystal_planter\"}"
        },
        "E": {
          "item": 'kubejs:item_28'
        },
        "F": {
          "item": "waterstrainer:strainer_base"
        }
      },
      "output": [{
        "type": "forge:nbt",
        "item": "custommachinery:custom_machine_item",
        "count": 1,
        "nbt": "{machine:\"custommachinery:crystal_farm\"}"
      }],
      "focus_constellation": "astralsorcery:mineralis",
      "relay_inputs": [
        { "item": 'kubejs:paper_4' },
        { "item": "ars_nouveau:crystallizer" },
        { "item": "astralsorcery:chalice" },
        { "item": 'kubejs:paper_4' },
        { "item": "ars_nouveau:crystallizer" },
        { "item": "astralsorcery:chalice" }
      ]
    },
    {
      "pattern": [
        "AABAA",
        "A C A",
        "ACDCA",
        "A C A",
        "AAEAA"
      ],
      "key": {
        "A": {
          "item": "kubejs:compressed_marble"
        },
        "B": {
          "item": "astralsorcery:ritual_link"
        },
        "C": {
          "item": "ironfurnaces:rainbow_core"
        },
        "D": {
          "item": "packagedastral:constellation_focus"
        },
        "E": {
          "item": "astralsorcery:ritual_pedestal"
        }
      },
      "output": [{
        item: 'torcherino:torcherino'
      }],
      "focus_constellation": "astralsorcery:horologium",
      "relay_inputs": [
        { "item": 'astralsorcery:lens' },
        { "item": 'astralsorcery:lens' },
        { "item": 'astralsorcery:lens' },
        { "item": 'astralsorcery:lens' },
        { "item": 'astralsorcery:lens' },
      ]
    },
    {
      "pattern": [
        "AABAA",
        "A C A",
        "AFDFA",
        "A F A",
        "AAEAA"
      ],
      "key": {
        "A": {
          "item": 'kubejs:compressed_marble'
        },
        "B": {
          "item": 'mythicbotany:asgard_rune'
        },
        "C": {
          "item": 'packagedastral:constellation_focus'
        },
        "D": {
          "item": 'astralsorcery:altar_constellation'
        },
        "E": {
          "item": 'packagedauto:package_component'
        },
        "F": {
          "item": 'botania:terrasteel_block'
        }
      },
      "output": [{
        item: 'packagedastral:trait_crafter'
      }],
      "focus_constellation": "astralsorcery:horologium",
      "relay_inputs": [
        { "item": 'ars_nouveau:whelp_charm' },
        { "item": 'ars_nouveau:carbuncle_charm' },
      ]
    }
  ]


  five_list.forEach((i) => {
    event.custom({
      "type": "astralsorcery:altar",
      "altar_type": 3,
      "duration": 600,
      "starlight": 4800,
      "pattern": i.pattern,
      "key": i.key,
      "output": i.output,
      "focus_constellation": i.focus_constellation,
      "relay_inputs": i.relay_inputs
    })
  });




  /**
{
  "type": "extendedcrafting:shaped_table",
  "pattern": [
    "A    ",
    "     ",
    "     ",
    "     ",
    "     "
  ],
  "key": {
    "A": {
      "type": "forge:nbt",
      "item": "custommachinery:custom_machine_item",
      "count": 1,
      "nbt": "{machine:\"custommachinery:highheat_furnace\"}"
    }
  },
  "result": {
    "item": ""
  }
}
   */


  // event.custom({
  //     "type": "astralsorcery:altar",
  //     "altar_type": 3,
  //     "duration": 600,
  //     "starlight": 4800,
  //     "pattern": ["__B__", "__A__", "BCDCB", "__A__", "__B__"],
  //     "key": {
  //         "A": { "tag": 'botania:livingrock' },
  //         "B": { "tag": "astralsorcery:stardust" },
  //         "C": { "tag": "astralsorcery:starmetal" },
  //         "D": { "item": "astralsorcery:shifting_star" }
  //     },
  //     "output": [{ "item": 'kubejs:magicinfused_alumicube', "count": 1 }],
  //     "focus_constellation": "astralsorcery:evorsio",
  //     "relay_inputs": [
  //         { "tag": "forge:cobblestone" },
  //         { "item": "astralsorcery:illumination_powder" },
  //         { "tag": "astralsorcery:stardust" },
  //         { "tag": "forge:cobblestone" },
  //         { "item": "astralsorcery:illumination_powder" },
  //         { "tag": "astralsorcery:stardust" }],

  // });
});